{include file="header.html"}
<script language="javascript" src="/plugin/My97DatePicker/WdatePicker.js"></script>
<div class="row">
<div class="span12">

{include file="goldorder/nav.html"}
<form method="get" action="{$appadmin}">
<input type="hidden" name="m" value="goldorder" />
<input type="hidden" name="a" value="default" />
<p>
订单号：<input type="text" name="orderno" value="{$smarty.get.orderno}" />
用户：<input type="text" name="nickname" value="{$smarty.get.nickname}" class="w100" />
状态：<select name="s_status" class="w100">
<option value="-1">请选择</option>
{foreach item=c key=k from=$order_status_list}
{if $k<99}<option value="{$k}" {if $smarty.get.s_status eq $k} selected="selected" {/if}>{$c}</option>{/if}
{/foreach}
</select>
支付：<select name="s_ispay" class="w100">
<option value="-1">请选择</option>
{foreach item=c key=k from=$order_ispay} 
<option value="{$k}" {if $smarty.get.s_ispay eq $k} selected="selected"{/if}>{$c}</option>
{/foreach}
</select>
<br />
订单类型：<select name="type_id">
<option value="0">请选择</option>
{foreach item=c key=k from=$order_type_list}
<option value="{$k}" {if get('type_id') eq $k} selected="selected"{/if}>{$c}</option>
{/foreach}
</select>
开始时间：<input type="text" name="start_time" value="{$smarty.get.start_time}"  onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
结束时间：<input type="text" name="end_time" value="{$smarty.get.end_time}"   onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
<input type="submit" value="搜索" class="btn btn-warning" />
</p>
</form>
<table width="100%" class="table table-bordered">
<tr>
<td>ID</td>
<td>订单号</td>
<td>联系方式</td>
<td>下单时间</td>
<td>支付状况</td>
<td>订单类型</td>
<td>价格</td>
<td>状态</td>
<td>操作</td>
</tr>
{foreach item=c from=$data}
<tr>
<td>{$c.order_id}</td>
<td>{$c.orderno}</td>
<td>{$c[address].truename}<br>
	{$c[address].telephone} 
</td>
<td>{$c.dateline|date:m-d H:i}</td>
<td>{$order_ispay[$c.ispay]}</td>
<td>{$order_type_list[$c.type_id]}</td>
<td>{$c.money}</td>
<td>{$order_status_list[$c.status]}</td>
<td><a href="{$appadmin}?m=goldorder&a=show&order_id={$c.order_id}">查看</a></td>
</tr>
{/foreach}

</table>
{$pagelist}
</div>

</div>

{include file="footer.html"}